package sbe.sonar.client.database;

import java.io.Serializable;

import javax.persistence.*;


/**
 * The persistent class for the ApplicationsByRepository database table.
 * 
 */
@Entity
@Table(name="ApplicationsByRepository", schema="SVNApplications")
@NamedQuery(name="ApplicationsByRepository.findAll", query="SELECT a FROM ApplicationsByRepository a")
public class ApplicationsByRepository implements Serializable {
	private static final long serialVersionUID = 1L;
	private ApplicationsByRepositoryPK id;
	private Application application;
	private Repository repository;

	public ApplicationsByRepository() {
	}


	@EmbeddedId
	public ApplicationsByRepositoryPK getId() {
		return this.id;
	}

	public void setId(ApplicationsByRepositoryPK id) {
		this.id = id;
	}


	//bi-directional many-to-one association to Application
	@ManyToOne
	@JoinColumn(name="idApplication")
	public Application getApplication() {
		return this.application;
	}

	public void setApplication(Application application) {
		this.application = application;
	}


	//bi-directional many-to-one association to Repository
	@ManyToOne
	@JoinColumn(name="idRepository")
	public Repository getRepository() {
		return this.repository;
	}

	public void setRepository(Repository repository) {
		this.repository = repository;
	}

}